package cn.yunhe.controll;

import cn.yunhe.model.House;
import cn.yunhe.model.UserRegs;
import cn.yunhe.services.SerRent;

public class UpdateAction extends BaseAction {

	 private String id;
	 private int uid;
	 
	 SerRent serRent = new SerRent();
	 public String sel(){
		 
		   UserRegs userRegs =(UserRegs)getSession().getAttribute("userRegs");
            uid =userRegs.getUid();
            UserRegs users = new UserRegs();
		    users.setUid(uid);
		    int idd = Integer.parseInt(id);
            House house =new House();
		    house.setId(idd);
		    
		    
		    House hou =serRent.selAll(house);
		    getSession().setAttribute("house", house);
		    
	       return "succe";
	        
		 
	 } 
	 
}
